﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VirtualTournaments.Business.Tournaments
{
	public abstract class MatchWithWinner : Match
	{
		public MatchWithWinner(Tournament tournament, Team local, Team visitor) : base(tournament, local, visitor) { }

		public override MatchResult Play()
		{
			base.Play();
			if (Result.Tie())
				BreakTie();
			return Result;
		}

		protected abstract void BreakTie();
	}
}
